Optimal. Leaf size=97 \[ \frac{6 \tan ^5(e+f x)}{35 a^3 c^4 f}+\frac{4 \tan ^3(e+f x)}{7 a^3 c^4 f}+\frac{6 \tan (e+f x)}{7 a^3 c^4 f}+\frac{\sec ^5(e+f x)}{7 a^3 f \left (c^4-c^4 \sin (e+f x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.119633, antiderivative size = 97, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {2736, 2672, 3767} \[ \frac{6 \tan ^5(e+f x)}{35 a^3 c^4 f}+\frac{4 \tan ^3(e+f x)}{7 a^3 c^4 f}+\frac{6 \tan (e+f x)}{7 a^3 c^4 f}+\frac{\sec ^5(e+f x)}{7 a^3 f \left (c^4-c^4 \sin (e+f x)\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2736
Rule 2672
Rule 3767
Rubi steps
\begin{align*} \int \frac{1}{(a+a \sin (e+f x))^3 (c-c \sin (e+f x))^4} \, dx &=\frac{\int \frac{\sec ^6(e+f x)}{c-c \sin (e+f x)} \, dx}{a^3 c^3}\\ &=\frac{\sec ^5(e+f x)}{7 a^3 f \left (c^4-c^4 \sin (e+f x)\right )}+\frac{6 \int \sec ^6(e+f x) \, dx}{7 a^3 c^4}\\ &=\frac{\sec ^5(e+f x)}{7 a^3 f \left (c^4-c^4 \sin (e+f x)\right )}-\frac{6 \operatorname{Subst}\left (\int \left (1+2 x^2+x^4\right ) \, dx,x,-\tan (e+f x)\right )}{7 a^3 c^4 f}\\ &=\frac{\sec ^5(e+f x)}{7 a^3 f \left (c^4-c^4 \sin (e+f x)\right )}+\frac{6 \tan (e+f x)}{7 a^3 c^4 f}+\frac{4 \tan ^3(e+f x)}{7 a^3 c^4 f}+\frac{6 \tan ^5(e+f x)}{35 a^3 c^4 f}\\ \end{align*}
Mathematica [A] time = 1.07088, size = 193, normalized size = 1.99 \[ \frac{\left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right ) \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right ) (5120 \sin (e+f x)+125 \sin (2 (e+f x))+2560 \sin (3 (e+f x))+100 \sin (4 (e+f x))+512 \sin (5 (e+f x))+25 \sin (6 (e+f x))-500 \cos (e+f x)+1280 \cos (2 (e+f x))-250 \cos (3 (e+f x))+1024 \cos (4 (e+f x))-50 \cos (5 (e+f x))+256 \cos (6 (e+f x)))}{17920 f (a \sin (e+f x)+a)^3 (c-c \sin (e+f x))^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.069, size = 193, normalized size = 2. \begin{align*} 2\,{\frac{1}{f{a}^{3}{c}^{4}} \left ( -1/7\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-7}-1/2\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-6}-{\frac{21}{20\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{5}}}-{\frac{11}{8\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{4}}}-{\frac{11}{8\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{3}}}-{\frac{15}{16\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{2}}}-{\frac{21}{32\,\tan \left ( 1/2\,fx+e/2 \right ) -32}}-1/20\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{-5}+1/8\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{-4}-1/4\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{-3}+1/4\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{-2}-{\frac{11}{32\,\tan \left ( 1/2\,fx+e/2 \right ) +32}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.29869, size = 701, normalized size = 7.23 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.66689, size = 263, normalized size = 2.71 \begin{align*} -\frac{16 \, \cos \left (f x + e\right )^{6} - 8 \, \cos \left (f x + e\right )^{4} - 2 \, \cos \left (f x + e\right )^{2} + 2 \,{\left (8 \, \cos \left (f x + e\right )^{4} + 4 \, \cos \left (f x + e\right )^{2} + 3\right )} \sin \left (f x + e\right ) - 1}{35 \,{\left (a^{3} c^{4} f \cos \left (f x + e\right )^{5} \sin \left (f x + e\right ) - a^{3} c^{4} f \cos \left (f x + e\right )^{5}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 2.27087, size = 255, normalized size = 2.63 \begin{align*} -\frac{\frac{7 \,{\left (55 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} + 180 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} + 250 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} + 160 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 43\right )}}{a^{3} c^{4}{\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 1\right )}^{5}} + \frac{735 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{6} - 3360 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{5} + 7315 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 8820 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} + 6321 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} - 2492 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 461}{a^{3} c^{4}{\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) - 1\right )}^{7}}}{560 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]